import request from '@/utils/request'

// 查询文章模板列表
export function listSysArticleModel(query) {
  return request({
    url: '/system/sysArticleModel/list',
    method: 'get',
    params: query
  })
}

// 查询文章模板详细
export function getSysArticleModel(id) {
  return request({
    url: '/system/sysArticleModel/' + id,
    method: 'get'
  })
}

// 新增文章模板
export function addSysArticleModel(data) {
  return request({
    url: '/system/sysArticleModel',
    method: 'post',
    data: data
  })
}

// 修改文章模板
export function updateSysArticleModel(data) {
  return request({
    url: '/system/sysArticleModel',
    method: 'put',
    data: data
  })
}

// 删除文章模板
export function delSysArticleModel(id) {
  return request({
    url: '/system/sysArticleModel/' + id,
    method: 'delete'
  })
}
